//公共
import myHeader from "/pages/headerfoot/pages/header.vue"
//公共底部
import Tabbar from '/pages/headerfoot/pages/hitgamefooter.vue'
//骨架
import uniSkeleton from "/plugin/skeleton/components/heaven-skeleton/heaven-skeleton.vue";
// 图标1
import uniIcons from "/uni_modules/uni-icons/components/uni-icons/uni-icons.vue";
//打帮赛方法
import hitmatchcommon from '@/common/hitmatchcommon.js';
//cache缓存
import Cache from '@/utils/cache.js';

export default {
	components: {
		uniIcons,
		Tabbar,
		myHeader,
		uniSkeleton,
	},
	data() {
		return {
			loading: true, //骨架
			list:[], //赛事列表
		}
	},

 
	onLoad(option) {
		var that=this;
		 that.getMakeList(option.id);//获取赛事
	},

	methods: {
		//获取赛事
		async getMakeList(id) {
			var that = this;
			var data = {};
			data['season_id']=id;
			data['make_user_id']=Cache.get('user_id');
			hitmatchcommon.getMakeListLibMethod(data).then(res => {
				if (res) {
					that.list = res; //赛季列表
				}
			});
		},
	}
}